package com.peas.platform.module.icims.budget.archives.controller.vo;

import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("明细项目类别")
public class BudgetItemTypeVo extends BaseVo {

    @ApiModelProperty(value = "明细项目类别编码", notes = "")
    @Size(max = 50, message = "明细项目类别编码不能超过50个字符")
    private String itemTypeCode;

    @ApiModelProperty(value = "明细项目类别名称", notes = "")
    @Size(max = 200, message = "明细项目类别名称不能超过200个字符")
    private String itemTypeName;

    // 1:有效，0:无效
    @ApiModelProperty(value = "状态", notes = "")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    @ApiModelProperty(value = "上级明细项目类别ID", notes = "")
    private Long parentId;

}
